package
{
	import com.demonsters.debugger.MonsterDebugger;
	
	import flash.display.Sprite;
	
	import rickyGame.model.User;


	public class JDebug
	{
		public function JDebug()
		{
		}
		
		public static function trace(...parms):void
		{
			MonsterDebugger.trace(null,parms);//trace(parms);
		}
		
		public static  function set isDebug(value:Boolean):void
		{
			MonsterDebugger.enabled=value;
		}
		
		public static  function get isDebug():Boolean
		{
			return MonsterDebugger.enabled;
		}
		
		public static function init(sprite:Sprite):void
		{
			MonsterDebugger.initialize(sprite);
		}
		
		public static function traceObj(caller:*, object:*, person:String="", label:String="", color:uint=0, depth:int=5):void
		{
			MonsterDebugger.trace(caller,object,person,label,color,depth);
		}
		
		public static function traceMe(object:*,label:String=""):void
		{
			MonsterDebugger.trace(null,object,User.userName,label,myColor);
		}
		
		public static function log(...par):void
		{
			MonsterDebugger.log(par);
		}
		
		public static var myColor:uint=0x0f0000+0xffff*Math.random();
	}
}